package com.wujilin.okra.database.handler;

import android.database.Cursor;

import com.wujilin.okra.database.CursorHandler;
import com.wujilin.okra.model.Model;

public class ModelHandler implements CursorHandler<Model> {
	@Override
	public Model handle(Cursor cursor) {
		return cursor.moveToNext() ? Model.of(cursor) : new Model();
	}
}
